 package uk.co.mmscomputing.device.twain;
 
 class TwainRange extends TwainContainer
 {
   private Object minValue;
   private Object maxValue;
   private Object stepSize;
   private Object defaultValue;
   private Object currentValue;
 
   TwainRange(int paramInt, byte[] paramArrayOfByte)
   {
     super(paramInt, paramArrayOfByte);
     this.minValue = get32BitObjectAt(paramArrayOfByte, 2);
     this.maxValue = get32BitObjectAt(paramArrayOfByte, 6);
     this.stepSize = get32BitObjectAt(paramArrayOfByte, 10);
     this.defaultValue = get32BitObjectAt(paramArrayOfByte, 14);
     this.currentValue = get32BitObjectAt(paramArrayOfByte, 18);
   }
   int getType() {
     return 6;
   }
   byte[] getBytes() {
     byte[] arrayOfByte = new byte[22];
     jtwain.setINT16(arrayOfByte, 0, this.type);
     set32BitObjectAt(arrayOfByte, 2, this.minValue);
     set32BitObjectAt(arrayOfByte, 6, this.maxValue);
     set32BitObjectAt(arrayOfByte, 10, this.stepSize);
     set32BitObjectAt(arrayOfByte, 14, this.defaultValue);
     set32BitObjectAt(arrayOfByte, 18, this.currentValue);
     return arrayOfByte;
   }
   public Object getCurrentValue() throws TwainIOException {
     return this.currentValue; } 
   public void setCurrentValue(Object paramObject) throws TwainIOException { this.currentValue = paramObject; } 
   public Object getDefaultValue() throws TwainIOException {
     return this.defaultValue; } 
   public void setDefaultValue(Object paramObject) throws TwainIOException { this.defaultValue = paramObject; }
 
   public Object[] getItems() {
     Object[] arrayOfObject = new Object[1];
     arrayOfObject[0] = this.currentValue;
     return arrayOfObject;
   }
 
   public String toString() {
     String str = super.toString();
     str = str + "minValue     = " + this.minValue + "\n";
     str = str + "maxValue     = " + this.maxValue + "\n";
     str = str + "stepSize     = " + this.stepSize + "\n";
     str = str + "defaultValue = " + this.defaultValue + "\n";
     str = str + "currentValue = " + this.currentValue + "\n";
     return str;
   }
 }

